import { Component, OnInit } from '@angular/core';

import { NavController } from 'ionic-angular';
import {IpmCirculatePage} from "../circulate/circulate.component";
import {IpmCashPage} from "../cash/cash.component";
import {IpmCoinPage} from "../coin/coin.component";
//import {IpmInterbankPage} from "../interbank/interbank.component";

@Component({
	selector: 'page-ipm-index',
	templateUrl: 'index.html'
})
export class IpmIndexPage implements OnInit{
	moa_page_name: any = "page-ipm-index";
  moa_page_explain: any = "组合管理";

  ngOnInit(): void {

  }
	menu = [{
	    icon: "jjsz.png",
	    name: "打新基金市值管理",
	    listType: "circulate"
	}, {
	    icon: "plxjlss.png",
	    name: "批量现金流试算",
	    listType: "cash"
	}, {
	    icon: "hbjjss.png",
	    name: "货币基金试算",
	    listType: "coin"
	}
	/*, {
	    icon: "tycd.png",
	    name: "同业存单管理",
	    listType: "interbank"
	}*/
	];

	constructor(
		public navCtrl: NavController
	) { }

	openPage(item) {
		// 如果是列表，跳转到列表页面
		switch (item.listType) {
      case 'circulate':
        this.navCtrl.push(IpmCirculatePage);
        break;
      case "cash":
        this.navCtrl.push(IpmCashPage);
        break;
      case "coin":
        this.navCtrl.push(IpmCoinPage);
		break;
	  /*case "interbank":
        this.navCtrl.push(IpmInterbankPage);
        break;*/
    }
	}
}

